import 'package:app/util/http.dart';
import 'package:flutter/material.dart';


class QrcodeApi{

  BuildContext? context;

  static QrcodeApi of(BuildContext? context) {
    QrcodeApi qrcodeApi = QrcodeApi();
    qrcodeApi.context = context;
    return qrcodeApi;
  }

  /// 根据站点编码查找value
  Future<dynamic> valueByCode(String code) async{
    return ApiService.of(context).get('lgs/qrcode/valueByCode/'+ code);
  }

}